package cn.shop.cloud.common;


import lombok.Data;

/**
 * @program: work
 * @ClassName BusinessException
 * @description: 自定义异常类
 * @author: 李尧坤
 * @create: 2024−12-19 19:28
 * @Version 1.0
 **/
public class BusinessException extends  RuntimeException{

    private CodeMsg codeMsg;

    public CodeMsg getCodeMsg() {
        return codeMsg;
    }

    public void setCodeMsg(CodeMsg codeMsg) {
        this.codeMsg = codeMsg;
    }

    //code  msg

    public BusinessException(CodeMsg codeMsg) {
        this.codeMsg = codeMsg;
    }

}
